# Create your views here.
from django.http import HttpResponse
from microblog.curriculum.models import *
from microblog.backend.models import FollowRelation
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
from microblog.utils.decorator import *
from microblog.backend.views import *



@login_required
def self_cur_view(request):
    return member_cur_view(request, request.user.username)

@render_to("selfthisweek.html", backend_proc)
@login_required
def member_cur_view(request, name):
    if request.method == 'GET':
        view_user = User.objects.get(username=name)
        try:
            schedule = Schedule.objects.get(person=view_user)
        except:
            schedule = 0
        range = [1,2,3,4,5,6,7]
    return locals()


